package com.zzxy.spring.service.impl;

import com.zzxy.spring.dao.IAccountDao;
import com.zzxy.spring.service.IAccountService;

public class AccountServiceImpl implements IAccountService {
    private IAccountDao accountDao;
    public IAccountDao getAccountDao() {
        return accountDao;
    }
    public void setAccountDao(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    public void transer(String outer, String inner, int money) {
        accountDao.out(outer,money);
        int i = 1 / 0;
        accountDao.out(inner,money);
    }
}
